package com.echat.messagesender.sender.model;

import lombok.Builder;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDateTime;

/**
 * Created by chenmohan on 2018/09/06
 *
 * @description
 */
@Data
@Builder
@Table(name="email_sendlog")
public class EmailSendLog {

    @Id
    private Long id;

    private Long userId;

    /** 邮件接收人，多个接收人时用","分隔 */
    private String receivers;

    private Boolean sendResult;

    @Column(name="send_datetime")
    private LocalDateTime sendTime;

    private Long sendPlatformId;

    private String memo;

    /** 关联查询时该字段不为null */
    private EmailSendLogDetail detail;
}
